<template>
  <div class="icon-item">
    <div class="icon-img">
      <img  :src="itemImg.imgUrl" alt="">
    </div>
    <div class="icon-desc">{{itemImg.desc}}</div>
  </div>
</template>

<script scoped>
export default {
  name: 'IconItem',
  props: {
    itemImg: {
      type: Object,
      default () {
        return {}
      }
    }
  },
  data () {
    return {}
  },
  components: {}
}
</script>

<style lang='less' scoped>
.icon-item{
  .icon-img{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: .44rem;
    box-sizing: border-box;
    padding: .1rem;
    img{
      display: block;
      margin: 0 auto;
      height: 100%;
    }
  }
  .icon-desc{
   position: absolute;
   left: 10%;
   right:10%;
   width: 80%;
    bottom: 0;
    height: .44rem;
    line-height: .44rem;
    text-align: center;
    color: @darkTextColor;
    .ellipsis();
  }
}

</style>
